#Maintainer:

pkgname=perl-xml-xpath
pkgver=1.48
pkgrel=2
pkgdesc="A set of modules for parsing and evaluating XPath statements"
arch=('any')
url="https://metacpan.org/release/XML-XPath"
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-xml-parser')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/M/MA/MANWAR/XML-XPath-$pkgver.tar.gz")
sha256sums=('7bc75be36b239e5b2e700a9570d2b53b43093d467f2abe6a743f9ff9093790cd')

build() {
  cd "${srcdir}/XML-XPath-${pkgver}"
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/XML-XPath-${pkgver}"
#  make test
}

package() {
  cd "${srcdir}/XML-XPath-${pkgver}"
  make DESTDIR="$pkgdir" install
}
